
package com.ruoyi.web.controller.lingshui.integrityEvaluation;


import java.util.List;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.supervise.domain.IGMPersonCreditRank;
import com.ruoyi.supervise.domain.IGMPersonStageRank;
import com.ruoyi.supervise.service.IIntegrityEvaluationService;

/**
 * @ClassName: enterprisesIntegrityEvaluationController
 * @Description: 诚信评价管理中企业评价结果
 * @Author wtj
 * @DateTime 2020年5月12日 下午3:30:54
 */
@Controller
@RequestMapping("/integrityEvaluation/person")
public class PersonIntegrityEvaluationController extends BaseController{

	private String personRealTimePrefix = "lingshui/integrityEvaluation/personRealTime";
	private String personStagePrefix = "lingshui/integrityEvaluation/personStage";
	
	@Autowired
    private IIntegrityEvaluationService integrityEvaluationService;
	
	/**
	 * @Title: personRealTime
	 * @Description: 跳转到人员实时评价结果页面
	 * @Author wtj
	 * @DateTime 2020-9-27 11:24:04
	 * @return
	 */
	@RequiresPermissions("integrityEvaluation:personRealTime:view")
	@GetMapping("/personRealTime")
	public String personRealTime()
	{
	    return personRealTimePrefix + "/personRealTime";
	}
	
	/**
	 * @Title: personRealTimeList
	 * @Description: 人员实时评价结果页面列表获取数据
	 * @Author wtj
	 * @DateTime 2020-9-27 11:27:05
	 * @param igmpcr
	 * @return
	 */
	@RequiresPermissions("integrityEvaluation:personRealTime:list")
	@PostMapping("/personRealTimeList")
    @ResponseBody
    public TableDataInfo personRealTimeList(IGMPersonCreditRank igmpcr)
    {
	   startPage();
	   List<IGMPersonCreditRank> igmpcrList = integrityEvaluationService.selectIGMPersonCreditRankList(igmpcr);
	   return getDataTable(igmpcrList);
    }
	
	/**
	 * @Title: personStage
	 * @Description: 跳转到人员阶段评价结果页面
	 * @Author wtj
	 * @DateTime 2020-9-27 11:27:37
	 * @return
	 */
	@RequiresPermissions("integrityEvaluation:personStage:view")
	@GetMapping("/personStage")
	public String personStage()
	{
	    return personStagePrefix + "/personStage";
	}
	
	/**
	 * @Title: personStageList
	 * @Description: 人员阶段评价结果页面列表获取数据
	 * @Author wtj
	 * @DateTime 2020-9-27 11:29:27
	 * @param igmpsr
	 * @return
	 */
	@RequiresPermissions("integrityEvaluation:personStage:list")
	@PostMapping("/personStageList")
    @ResponseBody
    public TableDataInfo personStageList(IGMPersonStageRank igmpsr)
    {
	   startPage();
	   List<IGMPersonStageRank> igmpsrList = integrityEvaluationService.selectIGMPersonStageRankList(igmpsr);
	   return getDataTable(igmpsrList);
    }
}
